package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.XxkApplicationInterfaceMapper;
import com.ruoyi.system.domain.XxkApplicationInterface;
import com.ruoyi.system.service.IXxkApplicationInterfaceService;
import com.ruoyi.common.core.text.Convert;

/**
 * 应用接口管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-04
 */
@Service
public class XxkApplicationInterfaceServiceImpl implements IXxkApplicationInterfaceService 
{
    @Autowired
    private XxkApplicationInterfaceMapper xxkApplicationInterfaceMapper;

    /**
     * 查询应用接口管理
     * 
     * @param id 应用接口管理主键
     * @return 应用接口管理
     */
    @Override
    public XxkApplicationInterface selectXxkApplicationInterfaceById(Long id)
    {
        return xxkApplicationInterfaceMapper.selectXxkApplicationInterfaceById(id);
    }

    /**
     * 查询应用接口管理列表
     * 
     * @param xxkApplicationInterface 应用接口管理
     * @return 应用接口管理
     */
    @Override
    public List<XxkApplicationInterface> selectXxkApplicationInterfaceList(XxkApplicationInterface xxkApplicationInterface)
    {
        return xxkApplicationInterfaceMapper.selectXxkApplicationInterfaceList(xxkApplicationInterface);
    }

    /**
     * 新增应用接口管理
     * 
     * @param xxkApplicationInterface 应用接口管理
     * @return 结果
     */
    @Override
    public int insertXxkApplicationInterface(XxkApplicationInterface xxkApplicationInterface)
    {
        xxkApplicationInterface.setCreateTime(DateUtils.getNowDate());
        return xxkApplicationInterfaceMapper.insertXxkApplicationInterface(xxkApplicationInterface);
    }

    /**
     * 修改应用接口管理
     * 
     * @param xxkApplicationInterface 应用接口管理
     * @return 结果
     */
    @Override
    public int updateXxkApplicationInterface(XxkApplicationInterface xxkApplicationInterface)
    {
        xxkApplicationInterface.setUpdateTime(DateUtils.getNowDate());
        return xxkApplicationInterfaceMapper.updateXxkApplicationInterface(xxkApplicationInterface);
    }

    /**
     * 批量删除应用接口管理
     * 
     * @param ids 需要删除的应用接口管理主键
     * @return 结果
     */
    @Override
    public int deleteXxkApplicationInterfaceByIds(String ids)
    {
        return xxkApplicationInterfaceMapper.deleteXxkApplicationInterfaceByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除应用接口管理信息
     * 
     * @param id 应用接口管理主键
     * @return 结果
     */
    @Override
    public int deleteXxkApplicationInterfaceById(Long id)
    {
        return xxkApplicationInterfaceMapper.deleteXxkApplicationInterfaceById(id);
    }
}
